package com.lz.ht.service;

import com.lz.ht.model.Customer;
import com.lz.ht.model.Customers;
import com.lz.ht.page.PageModel;

import java.util.HashMap;
import java.util.List;

public interface CustomersService {

    List<Customers> findPageList(PageModel<Customers> page, Customers customers) throws Exception;
    List<Customers> findListByMapLimit(HashMap<String,Object> hashMap, long first, long last);

    long findCount(Customers customers) throws Exception;
    long findCountByMap(HashMap<String,Object> hashMap);

    void add(Customers record);

    Customers findById(String cid);

    void updateById(Customers customers);

    int deleteById(String cid);
}
